import java.util.Date;


public class CantidadDias {
	
	
	public static Long cantDia(Date dia1,Date dia2){
		Long l = dia2.getTime()-dia1.getTime(); 		
		return l;
	}

	/**
	 * @param args
	 */
	@SuppressWarnings("deprecation")
	public static void main(String[] args) {
		Date d1= new Date(2010,8,1);
		System.out.println("Dias Transcurridos "+ d1.toString()+"\n");
		Date d2= new Date(2010,10,5);
		System.out.println("Dias Transcurridos "+ d2.toString()+"\n");
		Long d3=cantDia(d1,d2);
		System.out.println("Dias Transcurridos "+d3/(3600*24*1000));// formula q permite calcular los dias...
	}

}
